#define _CRT_SECURE_NO_WARNINGS


#include <iostream>
using namespace std;

class Person {
    // write your code here......


public:
    Person(int age) {
        this->age = age;
    }
    friend void showAge(Person& p);
private:
    int age;
};

void showAge(Person& p) {
    cout << p.age << endl;
}

int main() {

    Person p(10);
    showAge(p);

    return 0;
}

#include<bits/stdc++.h>
using namespace std;
class phone {
	// write your code here......

private:
	int price;
	friend class myphone;
public:
	phone(int x) {
		price = x;
	}
};
class myphone {
private:
	phone a;
public:
	myphone(int x) :a(x) {
	}
	int getprice() {
		return a.price;
	}
};
int main() {
	int p;
	cin >> p;
	myphone a(p);
	cout << a.getprice();
	return 0;
}